import request from '@/utils/request'

// 查询支付申请列表
export function listPaymentapplication(query) {
  return request({
    url: '/expensereimbursement/paymentapplication/list',
    method: 'get',
    params: query
  })
}

// 查询支付申请详细
export function getPaymentapplication(paymentApplicationId) {
  return request({
    url: '/expensereimbursement/paymentapplication/' + paymentApplicationId,
    method: 'get'
  })
}

// 新增支付申请
export function addPaymentapplication(data) {
  return request({
    url: '/expensereimbursement/paymentapplication',
    method: 'post',
    data: data
  })
}

// 修改支付申请
export function updatePaymentapplication(data) {
  return request({
    url: '/expensereimbursement/paymentapplication',
    method: 'put',
    data: data
  })
}

// 删除支付申请
export function delPaymentapplication(paymentApplicationId) {
  return request({
    url: '/expensereimbursement/paymentapplication/' + paymentApplicationId,
    method: 'delete'
  })
}
